package com.liu.shop.feign;

import com.liu.shop.common.vo.StockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "shop-goods",path = "stock")
public interface StockService {

    @RequestMapping("/lockStock")
    public Boolean lockStock(@RequestBody List<StockVo> stockVoList);

    /**
     * 释放库存
     * @param stockVoList
     */
    @RequestMapping("/unLockStock")
    public Boolean unLockStock(@RequestBody List<StockVo> stockVoList);
}
